package com.ysu.his.admin.mapper;

import com.ysu.his.dto.UserDto;
import com.ysu.his.entity.user.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper
{

    List<User> findUserByPage(UserDto userDto);

    void insertUser(User user);

    User findUserByWorkNumber(String workNumber);

    void updateUser(User user);

    User getUserInfoById(Long id);

    void startOrStop(Long userId, Integer status);

    void deleteById(Long userId);

    List<User> findAllDoctor();
}
